package cre.sample.test.thread;

import java.util.HashMap;

public class T {

	private HashMap map = new HashMap();
	
	public void m(Integer k,Integer v){
		map.put(k, v);
	}

	public T() {
	}

	public static void main(String[] args) {
	final	T t=new T();
		for (int i = 0; i < 10; i++) {
			 new Thread() {
				public void run() {
					for (int i = 0; i < 500000; i++) {
						t.m(new Integer(i), i);
					}

					System.out.println("t2 over");
				}
			}.start();;
		}
	}
}